home *** CD-ROM | disk | FTP | other *** search
- / interrupt-latency measurement routine
- /
- .globl lathandler_,latency_
- /
- .shri
- /
- lathandler_:
- movem.l ${d0,a0},-(sp) / Save working registers
- /
- moveq.l $0,d0
- move.b 0xfffa1f,d0 / Read timer value
- asl.w $2,d0 / Index in LONG array
- movea.l $latency_,a0
- addq.l $1,0(a0,d0) / Inc the proper element
- /
- movea.l $0xfffa0f,a0 / Location of ISR
- bclr $5,(a0) / Clear the bit
- /
- movem.l (sp)+,${d0,a0} / Restore registers
- rte
-
-